module.exports = {
    lintOnSave: false,
    devServer: {
        port: 8666,
        hot: true,//实时更新页面
        proxy: {
            '^/api': {
                target: 'http://cm-m-back-test.ciftis.org.cn/',
                changeOrigin: true,
                pathRewrite: { '^/api': '/api' }
            },

        }

    },
    css: {
        loaderOptions: {
            css: {
                // options here will be passed to css-loader
            },
            postcss: {
                // options here will be passed to postcss-loader
                plugins: [require('postcss-px2rem')({
                    remUnit: 37.5
                })]
            }
        }
    }
}
